package com.global.college.ui.fragment.training;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.global.college.R;
import com.global.college.base.BaseFragment;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 课程-目录
 */
public class TrainProblemFragment extends BaseFragment {

    @BindView(R.id.tv_problem)
    TextView tvProblem;

//    protected static final String ARG_PARAM1 = "param1";

    public TrainProblemFragment() {
    }

    public static TrainProblemFragment newInstance() {
        TrainProblemFragment fragment = new TrainProblemFragment();
//        Bundle args = new Bundle();
//        args.putString(ARG_PARAM1, param1);
//        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        if (getArguments() != null) {
//            courseIntro = getArguments().getString(ARG_PARAM1);
//        }

    }

    @Override
    public int getContentViewId() {
        return R.layout.fragment_train_problem;
    }

    @Override
    public void initView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    }

    @Override
    protected void initData() {
//        tvIntro.setText(Html.fromHtml(courseIntro));
    }

    @OnClick({R.id.tv_problem})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_problem:
                TrainDialogFragment.newInstance().show(mActivity.getSupportFragmentManager(), "1");
                break;
            default:
                break;
        }
    }

}
